package event;

import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import event.EmailEvent;

public class Test {
	public static void main(String[] args) {
		test_event();
	}

	public static void test_event() {
		ApplicationContext ctx = new FileSystemXmlApplicationContext(
				"src/event/event.xml");
		EmailEvent mailevent = new EmailEvent("hello",
				"spring_test@zjut.edu.cn", "this is a test");
		ctx.publishEvent(mailevent);
	}
}

